package routers

import (
	"CRMSystem/controllers"
	beego "github.com/beego/beego/v2/server/web"
)

func init() {
	//基本信息列表
	beego.Router("/customer", &controllers.CustomerController{}, "get:CustomerList")

	//搜索客户
	beego.Router("/customer/search", &controllers.CustomerController{}, "get:SearchCustomerList")

	//客户详细信息
	beego.Router("/customerView", &controllers.CustomerViewController{}, "get:GetCustomer")

	//服务客户详细信息
	beego.Router("/ServiceCustomerView", &controllers.ServiceController{}, "get:GetCustomerInformation")

	//客户服务基本信息
	beego.Router("/customerService", &controllers.CustomerViewController{}, "get:GetServiceList")

	//流失客户基本信息
	beego.Router("/lostCustomer", &controllers.CustomerController{}, "get:CustomerLostList")
	//搜索流失客户基本信息
	beego.Router("/lostCustomer/search", &controllers.CustomerController{}, "get:SearchCustomerLostList")

	//潜在客户
	beego.Router("/latentCustomer", &controllers.LatentCustomerController{}, "get:LatentCustomerList")

	//可开展服务客户
	beego.Router("/customerPlan", &controllers.CustomerController{}, "get:CustomerPlanList")
	//搜索可开展服务客户
	beego.Router("/customerPlan/search", &controllers.CustomerController{}, "get:SearchCustomerPlanList")

	//重定向到服务创建
	beego.Router("/viewCustomer", &controllers.CustomerController{}, "get:ViewCustomer")

	//服务创建客户信息显示
	beego.Router("/customerInfo", &controllers.CustomerViewController{}, "get:GetCustomerInfoByCustomerID")

	//创建客户表单提交
	beego.Router("/submitCustomer", &controllers.CustomerController{}, "post:SubmitCustomer")

}
